Boot the app asynchronously - #172
Conversation
|
Please rebase on top of the current master, I have landed a change of |
|
I find it weird that |
|
BTW this PR is only a part of 170, there are three tasks in that issue. I have modified PR description to prevent auto-close. |
4cd806e to
32ec142
Compare
There was a problem hiding this comment.
This should be implemented by loopback-boot, please remove L19-L20.
It would be nice to add a unit-test for this too, see https://github.com/strongloop/loopback-workspace/blob/master/test/end-to-end.js.
The test can do this for example:
- scaffold a new app
- add async boot script
- require server/server.js
- check that there is a flag indicating async boot process and that the event
readyis eventually emitted
32ec142 to
27c0893
Compare
|
The new version of As I mentioned in a line comment, I'd like to see unit tests before landing this patch.
|
5f137ee to
84dce50
Compare
|
@bajtos Review please. |
There was a problem hiding this comment.
We must preserve the event started, it's used by server/boot/explorer.js to print a message with Explorer URL, but only after the app was started.
There was a problem hiding this comment.
Makes sense. It's different from booted, adding back.
d76fffe to
e886ce4
Compare
|
@slnode test please |
|
@bajtos Review please. |
|
One more thing to fix before you can merge this patch: The scaffolded version of loopback-boot ( Note that the version of loopback-boot in the toplevel Other than that, the change LGTM. You can land it without further review after you upgrade loopback-boot. |
|
Also please make sure the test is passing on Jenkins before merging. |
e886ce4 to
dd470e9
Compare
dd470e9 to
ab51347
Compare
Connected to #170